<div id="user_times">
	<fieldset style="width:800px;">
		<%= form_tag ({:controller => 'endar_user_time', :action => 'create', :id => @event.id, :uid => @user.id}, :multipart => true) %>
			<% fields_for "user_times", user_time do |f| %>
				<p>
				<% if @event.date_begin.min == 0 %>
				<%= f.datetime_select 'date_begin', {:minute_step => 30, :use_short_month => true, :order => [:month, :day, :year, :hour, :minute], :start_year => @event.date_begin.year, :default => {:hour => @event.date_begin.hour, :minute => 0}} %>to
				<% else %>
				<%= f.datetime_select 'date_begin', {:minute_step => 30, :use_short_month => true, :order => [:month, :day, :year, :hour, :minute], :start_year => @event.date_begin.year, :default => {:hour => @event.date_begin.hour, :minute => 30}} %>to
				<% end %>
				<% if @event.date_end.min == 0 %>
				<%= f.datetime_select 'date_end', {:minute_step => 30, :use_short_month => true, :order => [:month, :day, :year, :hour, :minute], :start_year => @event.date_end.year, :default => {:hour => @event.date_end.hour, :minute => 0}} %><br></p>
				<% else %>
				<%= f.datetime_select 'date_end', {:minute_step => 30, :use_short_month => true, :order => [:month, :day, :year, :hour, :minute], :start_year => @event.date_end.year, :default => {:hour => @event.date_end.hour, :minute => 30}} %><br></p>
				<% end %>
			<% end %>
		<%= submit_tag "Submit" %>
	</fieldset>
</div>